
const assert = require('assert');
const path = require('path');

describe('webpack.base.js test case', () => {
    const baseConfig = require('../../lib/webpack.base.js');
    // console.log(baseConfig);

    it('entry', () => {
        // let _index = path.join(__dirname, '../smoke/template/src/index/index.js'); // 正斜杠, 反斜杠 - windows 上有问题
        let _index =  'builder-webpack/test/smoke/template/src/index/index.js';
        assert.equal(baseConfig.entry.index.indexOf(_index) != -1, true);
    });
});
